// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   FontChooser.java

package presenter;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;

// Referenced classes of package presenter:
//            SongFile

public class FontChooser extends JPanel implements ActionListener
{
    public static final long serialVersionUID=1234567;
    public FontChooser()
    {
        changeColor = new JButton("Change Font Color");
        changeColor.addActionListener(this);
        add(changeColor);
    }

    public FontChooser(SongFile sf)
    {
        this();
        setSong(sf);
    }

    public void setSong(SongFile sf)
    {
        song = sf;
    }

    public void actionPerformed(ActionEvent e)
    {
        if(e.getSource() == changeColor && song != null)
        {
            chooser = new JColorChooser();
            JColorChooser _tmp = chooser;
            java.awt.Color color = JColorChooser.showDialog(chooser, "", song.getColor());
            song.setColor(color);
        }
    }

    private JButton changeColor;
    private SongFile song;
    JColorChooser chooser;
}
